<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
    <title>唤醒微信</title>
</head>
<!--<script type="text/javascript" src="jquery-3.1.1.min.js"></script>-->
<script type="text/javascript" src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="http://res2.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
<script th:inline="javascript">
    if (typeof window.WeixinJSBridge == "undefined") {
        $(document).on('WeixinJSBridgeReady', function () {
            WeixinJSBridge.invoke(
                'getBrandWCPayRequest', {
                    apId: [[${jsapi.appid}]],     //公众号名称，由商户传入
                    nonceStr: [[${jsapi.noncestr}]],
                    package: [[${package}]],
                    paySign: [[${jsapi.sign}]], //微信签名
                    timestamp: [[${jsapi.timestamp}]],
                    signType: "MD5"
                },
                function (res) {
                    if (res.err_msg === "get_brand_wcpay_request:ok") {

                    }
                });
    })

</script>
</html>
